package StructuralPatterns.Proxy.Cglib;


public class Test {

  public static void main(String[] args) {
    UserDao userDao = new UserDao();
    UserDao proxyInstance = (UserDao) new ProxyFactory(userDao).getProxyInstance();
    proxyInstance.save();


    IPeopleDao iPeopleDao = new IPeopleDao();
    IPeopleDao proxyInstance1 = (IPeopleDao) new ProxyFactory(iPeopleDao).getProxyInstance();
    proxyInstance1.draw();
  }
}
